﻿using System;
using System.Collections.Generic;
using System.IO.Ports;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Aribaccio.Device
{
    public interface IDeviceParaSerial : IDevicePara
    {
        /// <summary>
        /// 串口号
        /// </summary>
        string PortName { get; set; }
        /// <summary>
        /// 波特率
        /// </summary>
        int BaudRate { get; set; }
        /// <summary>
        /// 数据位
        /// </summary>
        int DataBits { get; set; }
        /// <summary>
        /// 停止位
        /// </summary>
        StopBits StopBits { get; set; }
        /// <summary>
        /// 奇偶校验
        /// </summary>
        Parity ParityBits { get; set; }
        /// <summary>
        /// 自动模式/启用事件接收
        /// </summary>
        bool AutoMode { get; set; }
    }
}
